import React from 'react';
import { View, ViewStyle } from 'react-native';
import { px2dp } from '~/utils/px2dp';

interface Props {
    height?: number;
    color?: string;
    style?: ViewStyle;
}
function ItemSeparator(props: Props) {
    const { height = px2dp(2), color = '#F6F7F9', style } = props;
    return <View style={[{ height, backgroundColor: color }, style]} />;
}

export default ItemSeparator;
